package com.bootdo.activiti.vo;

import org.activiti.engine.history.HistoricActivityInstance;

import java.util.Date;

public class HistoryVO {
/**
 *  System.out.println("活动ID:"+hai.getId());
 *             System.out.println("流程实例ID:"+hai.getProcessInstanceId());
 *             System.out.println("活动名称："+hai.getActivityName());
 *             System.out.println("办理人："+hai.getAssignee());
 *             System.out.println("开始时间："+hai.getStartTime());
 *             System.out.println("结束时间："+hai.getEndTime());
 *             System.out.println("=================================");
 * */
    private String id;
    private String processInstanceId;
    private String activityName;
    private String assignee;
    private Date startTime;
    private Date endTime;

    public HistoryVO(HistoricActivityInstance instance){
        this.setId(instance.getId());
        this.processInstanceId = instance.getProcessInstanceId();
        this.activityName = instance.getActivityName();
        this.assignee = instance.getAssignee();
        this.startTime = instance.getStartTime();
        this.endTime = instance.getEndTime();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getAssignee() {
        return assignee;
    }

    public void setAssignee(String assignee) {
        this.assignee = assignee;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
}
